import request from '@/server/request';

// 获取任务列表
export function getFileList(data, headers = {}) {
  return request({
    url: 'file/page',
    method: 'post',
    headers,
    data
  });
}

// import { queryBodyByProduce } from '@/api/formview/index.js';
export function queryBodyByProduce(data) {
  return request({
    url: 'dynamicReportForm/queryBodyByProduce',
    method: 'post',
    data
  });
}

export function queryHeaderByMenuId(params) {
  return request({
    url: 'dynamicReportForm/queryHeaderByMenuId',
    method: 'get',
    params
  });
}
export function queryHeaderByTableId(params) {
  return request({
    url: 'dynamicReportForm/queryHeaderByTableId',
    method: 'get',
    params
  });
}

export function getNotice(data) {
  return request({
    url: '/notice/get',
    method: 'post',
    data
  });
}

export function getBodyData(data) {
  return request({
    url: '/dynamicReportForm/queryBodyByProduce',
    method: 'post',
    data
  });
}
export function getFilePage(data) {
  return request({
    url: '/file/page',
    method: 'post',
    data
  });
}

// 获取任务列表
export function uploadFileMulti(data) {
  return request({
    url: 'file/uploadMulti',
    method: 'post',
    headers: {
      'Content-Type': 'multipart/form-data'
    },
    data
  });
}
